﻿namespace EFS.RC.SupervisorCentral.Controls.Agents.ACD.Available
{
	public partial class Ribbon : System.Windows.Controls.UserControl
	{
		public Ribbon()
		{
			InitializeComponent();
		}

		#region Properties

		/// <summary>
		/// Set agents list
		/// </summary>
		EFS.RC.SupervisorCentral.Controls.Agents.List agentList = null;
		public EFS.RC.SupervisorCentral.Controls.Agents.List AgentList
		{
			set { agentList = value; }
		}

		/// Property Count: Set
		public System.Int32 Count
		{
			set
			{
				// value
				controlRibbonItemCount.Info = value.ToString();
				
				// th
				EFS.RC.SupervisorCentral.Common.Config.Sections.Monitoring.Thresholds.All phoneThresholds = EFS.RC.SupervisorCentral.Common.Config.Sections.Monitoring.All.Instance.GetForThePhone(agentList.CustomerEndPoint.PhoneUri); 
				controlRibbonItemCount.SetThreshold(value, phoneThresholds.ACD_AvailableCount);
			}
		}
		#endregion
	}

}